package com.example.zluserservice.common.constant;

/**
 * @Author zhenliu（孙凌岳）
 * @Description 静态变量
 * @Date 2025/6/15 17:41
 * @Version 1.0
 */
public class CommonConstant {
    /**
     * 日志详情-成功
     */
    public static final String LOG_OPERATION_STATUS_SUCCESS_POSTFIX = "成功";
    /**
     * 日志详情-失败
     */
    public static final String LOG_OPERATION_STATUS_FAIL_POSTFIX = "失败";
    /**
     * 日志操作状态-成功
     */
    public static final int LOG_OPERATION_STATUS_SUCCESS = 0;

    /**
     * 日志操作状态-失败
     */
    public static final int LOG_OPERATION_STATUS_FAIL = 1;

    /**
     * 自定数据权限
     */
    public static final String DATA_SCOPE_CUSTOM = "0";

    /**
     * 仅本人数据权限（普通用户只能看自己）
     */
    public static final String DATA_SCOPE_SELF = "1";

    /**
     * 管理员查看所有普通用户
     */
    public static final String DATA_SCOPE_ADMIN = "2";

    /**
     * 全部数据权限（超管）
     */
    public static final String DATA_SCOPE_ALL = "3";

    /**
     * 数据权限过滤关键字
     */
    public static final String DATA_SCOPE = "dataScope";

    /**
     * 当前用户
     */
    public static final String CURRENT_USER = "currentUser";
    /**
     * Header中token
     */
    public static final String USER_TOKEN = "authorization";

    /**
     * 启用状态
     */
    public static final String DATA_STATE_0 = "0";

    /**
     * 禁用状态
     */
    public static final String DATA_STATE_1 = "1";

    /**
     * 常量菜单
     */
    public static final String MENU = "m";

    /**
     * 常量按钮
     */
    public static final String BUTTON = "r";

    /**
     *  前端显示布局
     */
    public static final String COMPONENT_LAYOUT="Layout";

    /**
     * 常量是
     */
    public static final String DEFAULT_0 = "0";
}
